/**
 * Project Name:JingZhenGu
 * File Name:Province.java
 * Package Name:com.gc.jingzhengu.vo
 * Date:2014-6-16下午5:58:47
 * Copyright (c) 2014, wangyd523@gmail.com All Rights Reserved.
 */

package com.jzg.jcptadmin.data.vo;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * ClassName:Province <br/>
 * Function: 省实体. <br/>
 * Reason: TODO ADD REASON. <br/>
 * Date: 2014-6-16 下午5:58:47 <br/>
 *
 * @author 汪渝栋
 * @see
 * @since JDK 1.6
 */
public class Province implements Serializable, Parcelable {
    /**
     * 省id
     */
    private int Id;

    /**
     * 名称
     */
    private String Name;

    /**
     * 字体颜色
     */
    private int FontColor;

    /**
     * Item颜色
     */
    private int ItemColor;

    public int getFontColor() {
        return FontColor;
    }

    public void setFontColor(int fontColor) {
        FontColor = fontColor;
    }

    public int getId() {
        return Id;
    }

    public void setId(int id) {
        Id = id;
    }

    public int getItemColor() {
        return ItemColor;
    }

    public void setItemColor(int itemColor) {
        ItemColor = itemColor;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    @Override
    public String toString() {
        return "Province{" +
                "FontColor=" + FontColor +
                ", Id=" + Id +
                ", Name='" + Name + '\'' +
                ", ItemColor=" + ItemColor +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.Id);
        dest.writeString(this.Name);
        dest.writeInt(this.FontColor);
        dest.writeInt(this.ItemColor);
    }

    public Province() {
    }

    protected Province(Parcel in) {
        this.Id = in.readInt();
        this.Name = in.readString();
        this.FontColor = in.readInt();
        this.ItemColor = in.readInt();
    }

    public static final Creator<Province> CREATOR = new Creator<Province>() {
        public Province createFromParcel(Parcel source) {
            return new Province(source);
        }

        public Province[] newArray(int size) {
            return new Province[size];
        }
    };
}
